package com.pet_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pet_service.enums.TOrderHomeServiceStatus;
import lombok.Data;

/**
 * 上门服务-订单关联表
 * @TableName order_home_service
 */
@TableName(value ="order_home_service")
@Data
public class OrderHomeService extends BaseEntity {
    /**
     * 订单ID
     */
    @TableField(value = "order_id")
    private Integer order_id;

    /**
     * 服务类型ID
     */
    @TableField(value = "service_type_id")
    private Integer service_type_id;

    /**
     * 服务时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "service_time")
    private Date service_time;

    /**
     * 地址ID
     */
    @TableField(value = "service_address_id")
    private Integer service_address_id;

    /**
     * 服务状态
     */
    @TableField(value = "service_status")
    private TOrderHomeServiceStatus service_status;

    /**
     * 服务人员ID
     */
    @TableField(value = "service_staff_id")
    private Integer service_staff_id;

    // 添加地址信息字段（非数据库字段，用于传输）
    @TableField(exist = false)
    private String fullAddress;
}